﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="CategoryCascadingDropDownTest" Codebehind="CategoryCascadingDropDownTest.aspx.cs" %>

<%@ Register src="CategoryCascadingDropDown.ascx" tagname="CategoryCascadingDropDown" tagprefix="uc1" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>


<%@ Register src="BrandSeries.ascx" tagname="BrandSeries" tagprefix="uc2" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>

    <form id="form1" runat="server">
  	<asp:ScriptManager ID="ScriptManager1" runat="server">
	</asp:ScriptManager>  
    <uc1:CategoryCascadingDropDown ID="CategoryCascadingDropDown1" runat="server" TopCategoryName=Product ShowLv2Category=True />
	<br />
	<uc1:CategoryCascadingDropDown ID="CategoryCascadingDropDown2" runat="server" TopCategoryName=Product ShowLv2Category=False />
	<br />
	<uc1:CategoryCascadingDropDown ID="CategoryCascadingDropDown3" runat="server" TopCategoryName=Product />
	<br />
	<uc1:CategoryCascadingDropDown ID="CategoryCascadingDropDown4" runat="server" TopCategoryName=Product />
	<br />
	<asp:Panel ID="pnlNewCategory" runat="server" Width="320px" BackColor="AliceBlue">
		<div>
			Category Name:
			<asp:TextBox ID="txtNewCategoryName" runat="server"></asp:TextBox>
			<asp:Literal ID="ltlNeedCategoryName" runat="server" Text="*" Visible="False"></asp:Literal>
		</div>
		<div>
			<asp:CheckBox ID="cbCreateSubCategory" runat="server" AutoPostBack="True" Text="Create subcategory"
				OnCheckedChanged="cbCreateSubcategory_CheckedChanged" />
		</div>
		<asp:Panel ID="pnlMainCategory" runat="server" Visible="False">
			<div>
				Main Category:
				<uc1:CategoryCascadingDropDown ID="ddlNewCategory" runat="server" TopCategoryName="Product"
					ShowLv2Category="False" />
			</div>
		</asp:Panel>
		<div>
			<asp:Button ID="btnInsertCategory" runat="server" Text="Insert" OnClick="btnInsertCategory_Click" />
			<asp:Button ID="btnCancelCategory" runat="server" Text="Cancel" />
		</div>
	</asp:Panel>
    
    </form>
</body>
</html>
